package com.mayikt;

import com.mayikt.base.BaseResponse;
import com.mayikt.resp.dto.ProductDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ProductSearchService {

    /**
     * 模糊查询
     *
     * @param name
     * @return
     */
    @GetMapping("/search")
    BaseResponse<List<ProductDto>> search(@RequestParam("name") String name);
}
